home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / winsock / serweb03.zip / SERWEDOC.CPP < prev    next >
C/C++ Source or Header  |  1993-09-30  |  2KB  |  83 lines

  1. // serwedoc.cpp : implementation of the CSerwebDoc class
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "serweb.h"
  6.  
  7. #include "serwedoc.h"
  8.  
  9. #ifdef _DEBUG
  10. #undef THIS_FILE
  11. static char BASED_CODE THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CSerwebDoc
  16.  
  17. IMPLEMENT_DYNCREATE(CSerwebDoc, CDocument)
  18.  
  19. BEGIN_MESSAGE_MAP(CSerwebDoc, CDocument)
  20.     //{{AFX_MSG_MAP(CSerwebDoc)
  21.         // NOTE - the ClassWizard will add and remove mapping macros here.
  22.         //    DO NOT EDIT what you see in these blocks of generated code !
  23.     //}}AFX_MSG_MAP
  24. END_MESSAGE_MAP()
  25.  
  26. /////////////////////////////////////////////////////////////////////////////
  27. // CSerwebDoc construction/destruction
  28.  
  29. CSerwebDoc::CSerwebDoc()
  30. {
  31.     line_number   = 0;  
  32.     column_number = 0;
  33.     m_sizeDoc = CSize(0, 1000);  
  34. }
  35.  
  36. CSerwebDoc::~CSerwebDoc()
  37. {
  38. }
  39.  
  40. BOOL CSerwebDoc::OnNewDocument()
  41. {
  42.     if (!CDocument::OnNewDocument())
  43.         return FALSE;
  44.     // TODO: add reinitialization code here
  45.     // (SDI documents will reuse this document)
  46.     return TRUE;
  47. }
  48.  
  49. /////////////////////////////////////////////////////////////////////////////
  50. // CSerwebDoc serialization
  51.  
  52. void CSerwebDoc::Serialize(CArchive& ar)
  53. {
  54.     if (ar.IsStoring())
  55.     {
  56.         // TODO: add storing code here
  57.     }
  58.     else
  59.     {
  60.         // TODO: add loading code here
  61.     }
  62. }
  63.  
  64.  
  65. /////////////////////////////////////////////////////////////////////////////
  66. // CSerwebDoc diagnostics
  67.  
  68. #ifdef _DEBUG
  69. void CSerwebDoc::AssertValid() const
  70. {
  71.     CDocument::AssertValid();
  72. }
  73.  
  74. void CSerwebDoc::Dump(CDumpContext& dc) const
  75. {
  76.     CDocument::Dump(dc);
  77. }
  78.  
  79. #endif //_DEBUG
  80.  
  81. /////////////////////////////////////////////////////////////////////////////
  82. // CSerwebDoc commands
  83.